﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PaginaMaestra.Master" AutoEventWireup="true" CodeBehind="AltaUsuario.aspx.cs" Inherits="ProyectoCine.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
        .style7
        {
            width: 113px;
        }
        .style13
    {
        width: 182px;
    }
        .style14
    {
        width: 163px;
    }
        .style15
    {
        width: 87px;
    }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contenido" runat="server">

    <asp:Panel ID="Panel1" runat="server" GroupingText="Nuevo Usuario" 
        Font-Bold="True" ForeColor="Red" Height="240px">
    <table class="style1" style="width: 99%">
    <tr>
        <td>
            <asp:Label ID="Label4" runat="server" Text="User Name"></asp:Label>
        </td>
        <td class="style13">
            <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
        </td>
        <td class="style15">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtPassUser" ErrorMessage="Ingresar User" Font-Bold="True" 
                ForeColor="Red" Width="92px" Font-Size="Small" 
                ValidationGroup="validadorGrupo" ToolTip="Ingresar User">*</asp:RequiredFieldValidator>
        </td>
        <td>
            <asp:Label ID="lblRol" runat="server" Text="2" Visible="False"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label5" runat="server" Text="Nombre"></asp:Label>
        </td>
        <td class="style13">
            <asp:TextBox ID="txtNombreUser" runat="server"></asp:TextBox>
        </td>
        <td class="style15">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtNombreUser" ErrorMessage="Ingresar Nombre" 
                Font-Bold="True" ForeColor="Red" Font-Size="Small" 
                ToolTip="Ingresar Nombre" ValidationGroup="validadorGrupo">*</asp:RequiredFieldValidator>
        </td>
        <td><asp:Label ID="Label6" runat="server" Text="Apellido"></asp:Label></td>
        <td>
            <asp:TextBox ID="txtApellidoUser" runat="server"></asp:TextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="txtApellidoUser" ErrorMessage="Ingresar Apellido" 
                Font-Bold="True" Font-Size="Small" ForeColor="Red" ValidationGroup="validadorGrupo" ToolTip="Ingresar Apellido">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label12" runat="server" Text="Tipo Dni"></asp:Label>
        </td>
        <td class="style13">
            <asp:DropDownList ID="ddlTipoDni" runat="server" Height="20px" Width="125px">
            </asp:DropDownList>
        </td>
        <td class="style15"></td>
        <td>
            <asp:Label ID="Label7" runat="server" Text="N° Dni"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtNumDni" runat="server" Width="128px"></asp:TextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ErrorMessage="RequiredFieldValidator" ValidationGroup="validadorGrupo" 
                Text="Ingresar Dni" ToolTip="Ingresar Dni" ControlToValidate="txtNumDni" 
                Font-Bold="True" ForeColor="Red" Font-Size="Small">*</asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator2" runat="server" 
                ErrorMessage="Ingresar Caracteres Numéricos" Font-Bold="True" Font-Size="Small" 
                ForeColor="Red" Width="16px" ControlToValidate="txtNumDni" Type="Double" 
                ValidationGroup="validadorGrupo" ToolTip="Ingresar Caracteres Numéricos">*</asp:CompareValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label8" runat="server" Text="E-mail"></asp:Label>
        </td>
        <td class="style13">
            <asp:TextBox ID="txtEmailUser" runat="server"></asp:TextBox>
        </td>
        <td class="style15">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtEmailUser" ErrorMessage="Ingresar Mail" Font-Bold="True" 
                ForeColor="Red" Font-Size="Small" ValidationGroup="validadorGrupo" ToolTip="Ingresar Mail">*</asp:RequiredFieldValidator>
        </td>
    </tr>   
    <tr>
        <td>
            <asp:Label ID="Label10" runat="server" Text="Password"></asp:Label>
        </td>
        <td class="style13">
            <asp:TextBox ID="txtPassUser" runat="server" TextMode="Password"></asp:TextBox>
        </td>    
        <td class="style15">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="txtPassUser" ErrorMessage="Ingresar Password" 
                Font-Bold="True" Font-Size="Small" ForeColor="Red" Width="65px" 
                ValidationGroup="validadorGrupo" ToolTip="Ingresar Password">*</asp:RequiredFieldValidator>
        </td>  
        <td>
            <asp:Label ID="Label11" runat="server" Text="Confirmar Password" Width="180px"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtConfirPass" runat="server" TextMode="Password"></asp:TextBox>
        </td>
        <td>
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="txtPassUser" ControlToValidate="txtConfirPass" 
                ErrorMessage="No coincide la contraseña." Font-Bold="True" 
                ForeColor="Red" Font-Size="Small" Width="21px" 
                ValidationGroup="validadorGrupo" ToolTip="No coincide la contraseña">*</asp:CompareValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                ErrorMessage="RequiredFieldValidator" ValidationGroup="validadorGrupo" 
                Text="Ingresar Password" ToolTip="Ingresar Password" ControlToValidate="txtConfirPass" 
                Font-Bold="True" ForeColor="Red" Font-Size="Small">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblError" runat="server" Text="Label"></asp:Label>
        </td>
    </tr>
        <tr>
            <td>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" Height="40px" 
                    ValidationGroup="validadorGrupo" Width="278px" />
            </td>
        </tr>
    </table>
    </asp:Panel>

    <asp:Button ID="btnAceptar" runat="server" Text="Aceptar" 
        onclick="btnAceptar_Click" ValidationGroup="validadorGrupo"/>
    &nbsp;&nbsp;<asp:Button ID="btnBorrar" runat="server" onclick="btnBorrar_Click" Text="Borrar" />
    &nbsp;&nbsp;<asp:Button ID="btnCancelar" runat="server" onclick="btnCancelar_Click1" Text="Cancelar" />
    &nbsp;&nbsp;

</asp:Content>
